package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-08-08
 */
@TableName("nb_jj_gpc")
public class JjGpc extends Model<JjGpc> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("g_scode")
    private String gScode;
    @TableField("g_yd_dsc")
    private String gYdDsc;
    @TableField("g_date")
    private Date gDate;
    @TableField("g_buy")
    private Double gBuy;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getgScode() {
        return gScode;
    }

    public void setgScode(String gScode) {
        this.gScode = gScode;
    }

    public String getgYdDsc() {
        return gYdDsc;
    }

    public void setgYdDsc(String gYdDsc) {
        this.gYdDsc = gYdDsc;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    

    public Date getgDate() {
		return gDate;
	}

	public void setgDate(Date gDate) {
		this.gDate = gDate;
	}

	public Double getgBuy() {
		return gBuy;
	}

	public void setgBuy(Double gBuy) {
		this.gBuy = gBuy;
	}

	@Override
    public String toString() {
        return "JjGpc{" +
        "id=" + id +
        ", gScode=" + gScode +
        ", gYdDsc=" + gYdDsc +
        "}";
    }
}
